package cn.edu.sgu.www.mhxysy.dto.system;

import cn.edu.sgu.www.mhxysy.dto.DataTransferObject;
import cn.edu.sgu.www.mhxysy.consts.CustomMessages;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author 沐雨橙风ιε
 * @version 1.0
 */
@Data
@ApiModel
public class UserLoginDTO implements DataTransferObject {

    /**
     * 验证码ID
     */
    @NotBlank(message = "验证码已过期，请重新获取！")
    @ApiModelProperty(value = "验证码ID", required = true)
    private String uuid;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "验证码", required = true)
    private String code;

    /**
     * 用户名
     */
    @NotBlank(message = "用户名" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "用户名", required = true)
    private String username;

    /**
     * 密码
     */
    @NotBlank(message = "密码" + CustomMessages.NOT_NULL)
    @ApiModelProperty(value = "密码", required = true)
    private String password;
}